home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
igo
/
src
/
mihandy.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-08
|
9KB
|
410 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int dialogId_handy ;
extern int dialogMessageId_handy ;
extern int radioId[9] ;
extern int radioFunc() ;
extern int radioMessageId[9] ;
extern int igo_handysetId[2] ;
extern int igo_handyset() ;
extern int cancelFunc() ;
extern int btnMessageId[2] ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataMIHANDY = { "MmiInit", 24, 0 } ;
/* dialogId_handy */
static MMIPACKET d001 = { &dialogId_handy,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
245, 82, 415, 371, 0, 7, 0,
MS_SRECTL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* dialogMessageId_handy */
static MMIPACKET d002 = { &dialogMessageId_handy,
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
271, 98, 383, 125, 0,15, 8,
MS_NONEL40,
"置石設定",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioId[0] */
static MMIPACKET d003 = { &radioId[0],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d003d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 137, 297, 155, 0, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[1] */
static MMIPACKET d004 = { &radioId[1],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d004d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 157, 297, 175, 0, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[2] */
static MMIPACKET d005 = { &radioId[2],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d005d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 177, 297, 194, 8, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[3] */
static MMIPACKET d006 = { &radioId[3],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d006d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 197, 297, 214, 8, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[4] */
static MMIPACKET d007 = { &radioId[4],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d007d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 218, 297, 235, 8, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[5] */
static MMIPACKET d008 = { &radioId[5],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d008d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 240, 297, 257, 8, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[6] */
static MMIPACKET d009 = { &radioId[6],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d009d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 261, 297, 278, 8, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[7] */
static MMIPACKET d010 = { &radioId[7],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d010d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 282, 297, 299, 8, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioId[8] */
static MMIPACKET d011 = { &radioId[8],
&dialogId_handy,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d011d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
279, 305, 297, 322, 8, 7, 8,
MS_NONEL40,
radioFunc,
0x0000, 259, 260
} ;
/* radioMessageId[0] */
static MMIPACKET d012 = { &radioMessageId[0],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d012d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 136, 360, 155, 8,15, 8,
MS_NONEL40,
"二子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[1] */
static MMIPACKET d013 = { &radioMessageId[1],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d013d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 157, 360, 176, 8,15, 8,
MS_NONEL40,
"三子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[2] */
static MMIPACKET d014 = { &radioMessageId[2],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d014d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 177, 360, 196, 8,15, 8,
MS_NONEL40,
"四子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[3] */
static MMIPACKET d015 = { &radioMessageId[3],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d015d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 196, 360, 216, 8,15, 8,
MS_NONEL40,
"五子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[4] */
static MMIPACKET d016 = { &radioMessageId[4],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d016d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 220, 360, 239, 8,15, 8,
MS_NONEL40,
"六子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[5] */
static MMIPACKET d017 = { &radioMessageId[5],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d017d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 240, 360, 259, 8,15, 8,
MS_NONEL40,
"七子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[6] */
static MMIPACKET d018 = { &radioMessageId[6],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d018d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 262, 359, 280, 8,15, 8,
MS_NONEL40,
"八子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[7] */
static MMIPACKET d019 = { &radioMessageId[7],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d019d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 283, 359, 301, 8,15, 8,
MS_NONEL40,
"九子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* radioMessageId[8] */
static MMIPACKET d020 = { &radioMessageId[8],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d020d = { MS_LEFTL40 | MS_DSPONLYL40,
310, 306, 362, 323, 8,15, 8,
MS_NONEL40,
"向三子",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* igo_handysetId[0] */
static MMIPACKET d021 = { &igo_handysetId[0],
&dialogId_handy,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d021d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
259, 337, 323, 363, 4, 7, 8,
MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
igo_handyset,
0x0000
} ;
/* igo_handysetId[1] */
static MMIPACKET d022 = { &igo_handysetId[1],
&dialogId_handy,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d022d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
338, 337, 402, 363,10, 7, 8,
MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
cancelFunc,
0x0000
} ;
/* btnMessageId[0] */
static MMIPACKET d023 = { &btnMessageId[0],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d023d = { MS_CENTERL40 | MS_DSPONLYL40,
263, 339, 322, 361, 8,15, 8,
MS_NONEL40,
"設定",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* btnMessageId[1] */
static MMIPACKET d024 = { &btnMessageId[1],
&dialogId_handy,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d024d = { MS_CENTERL40 | MS_DSPONLYL40,
340, 339, 399, 361, 8,15, 8,
MS_NONEL40,
"取消",
1, 12, 12,
MS_NONEL40,
5, 0
} ;